@extends('layout.backend_iframe')
<style>
    .dsb-card-1 {
        padding-left:8px;
        padding-right:8px;
        background:#FFFFFF;
        height:200px;
        box-sizing: border-box;
        margin: 0;
        color: rgba(0, 0, 0, 0.85);
        font-size: 14px;
        font-variant: tabular-nums;
        line-height: 1.5715;
        list-style: none;
        font-feature-settings: 'tnum';
        position: relative;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s;
    }
    .dsb-card-body{
        padding: 16px 22px 12px 22px;
    }
    .card-text-1{
        align-items: center;
        color: rgba(0, 0, 0, 0.45);
        display: flex;
    }
    .tit-left {
        flex: 1;
    }
    .card-chart-num{
        font-size: 30px;
        color: rgba(0, 0, 0, 0.85);
        font-weight: normal;
        line-height: 1.6;
    }
    #main{
        padding:0px 15px !important;
    }
    .chart-card-content{
        padding-top:16px;
        height : 40px;
    }
    .space-align-center{
        align-items: center;
        display: inline-flex;
    }
    .divider-horizontal {
        margin: 14px 0;
        display: block;
        clear: both;
        width: 100%;
        min-width: 100%;
        height: 1px;
        box-sizing: border-box;

        padding: 0;
        color: rgba(0, 0, 0, 0.85);
        font-size: 14px;
        font-variant: tabular-nums;
        line-height: 1.5715;
        list-style: none;
        font-feature-settings: 'tnum';
        background: #f0f0f0;
    }
    .tag-red{
        height: 22px;
        line-height: 22px;
        padding: 2px 6px;
        margin: 0;
        box-sizing: content-box;
        transition: none;
        border: 1px solid #ffa39e;
        color: #f5222d;
        background: #fff1f0;
        font-variant: tabular-nums;
        border-radius: 2px;
        cursor: default;
        opacity: 1;
        font-size: 12px;
        white-space: nowrap;
    }
    .sales-data{
        border-radius: 2px;
        background:#ffffff;
        margin-top:20px;
    }
    .real-data {
        border-radius: 2px;
        margin-top:20px;
    }
    .sales-title {
        padding: 0 16px 0 4px;
        border-bottom: 1px solid #f0f0f0;
    }
    .sales-item {
        padding:20px 15px 15px;
        font-size: 16px;
        font-weight:500;
    }
    .item-active {
        border-bottom:2px solid #1890ff;
        color:#1890ff;
    }
    .tab-group .btn-wrap {
        position: relative;
        display: inline-block;
        height: 32px;
        margin: 0;
        padding: 0 15px;
        color: rgba(0, 0, 0, 0.85);
        line-height: 30px;
        background: #fff;
        border: 1px solid #d9d9d9;
        border-top-width: 1.02px;
        border-left: 0;
        cursor: pointer;
        transition: color 0.3s, background 0.3s, border-color 0.3s;
        box-sizing: border-box;
    }
    .tab-group .btn-wrap-active{
        z-index: 1;
        color: #1890ff;
        background: #fff;
        border-color: #1890ff;
        box-shadow: -1px 0 0 0 #1890ff
    }
    .tab-group{
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        color: rgba(0, 0, 0, 0.85);
        font-size: 14px;
        font-variant: tabular-nums;
        line-height: 1.5715;
        list-style: none;
        font-feature-settings: 'tnum';
        display: inline-block;
    }
    .btn-wrap:first-child {
        border-left: 1px solid #d9d9d9;
        border-radius: 2px 0 0 2px;
    }
    span {
        margin:0;
        padding:0
    }
    .datetimerange{
        height :32px!important;
        border-radius: 2px !important;
    }
    .real-time {
        margin-top:15px;
    }

</style>

@section("main-content")
    <div id="main" style="margin-top:15px">
        <div class="row" style="margin-left:-8px;margin-right:-8px">
            <div class="col-lg-3" style="">
                <div class="dsb-card-1">
                    <div class="dsb-card-body">
                        <div class="card-text-1">
                            <div class="tit-left">总销售额</div>
                            <span class="tit-right"><i class="iconfont icon-wenhao6"></i> </span>
                        </div>
                        <h1 class="card-chart-num">
                            ¥ 126,560
                        </h1>
                        <div class="chart-card-content">
                            <div class="space-align-center">
                                <div class="space-item" style="margin-right:16px">
                                    周同比12% <i class="iconfont icon-sort-up2" style="color:red;font-size: 14px;"></i>
                                </div>
                                <div class="space-item" style="margin-right:16px">
                                    日同比11% <i class="iconfont icon-sort-down5" style="color:#52c41a;font-size: 14px;"></i>
                                </div>
                            </div>
                        </div>
                        <div class="divider-horizontal">
                        </div>
                        <div>
                            日销售额 ￥12,423
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3" style="">
                <div class="dsb-card-1">
                    <div class="dsb-card-body">
                        <div class="card-text-1">
                            <div class="tit-left">访问量</div>
                            <span class="tit-right"><span class="tag-red">日</span></span>
                        </div>
                        <h1 class="card-chart-num">
                            1314
                        </h1>
                        <div class="chart-card-content">
                            <div class="space-align-center">
                                <div class="space-item" style="margin-right:16px">
                                    周同比12% <i class="iconfont icon-sort-up2" style="color:red;font-size: 14px;"></i>
                                </div>
                                <div class="space-item" style="margin-right:16px">
                                    日同比11% <i class="iconfont icon-sort-down5" style="color:#52c41a;font-size: 14px;"></i>
                                </div>
                            </div>
                        </div>
                        <div class="divider-horizontal">
                        </div>
                        <div>
                            日访问量 1234
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3" style="">
                <div class="dsb-card-1">
                    <div class="dsb-card-body">
                        <div class="card-text-1">
                            <div class="tit-left">会员数</div>
                            <span class="tit-right"><span></span></span>
                        </div>
                        <h1 class="card-chart-num">
                            11557
                        </h1>
                        <div class="chart-card-content">
                            <div class="space-align-center">
                                <div class="space-item" style="margin-right:16px">
                                    周同比 18% <i class="iconfont icon-sort-up2" style="color:red;font-size: 14px;"></i>
                                </div>
                                <div class="space-item" style="margin-right:16px">
                                    月同比 5% <i class="iconfont icon-sort-up2" style="color:red;font-size: 14px;"></i>
                                </div>
                            </div>
                        </div>
                        <div class="divider-horizontal">
                        </div>
                        <div>
                            日新增 55
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3" style="">
                <div class="dsb-card-1">
                    <div class="dsb-card-body">
                        <div class="card-text-1">
                            <div class="tit-left">会员数</div>
                            <span class="tit-right"><span></span></span>
                        </div>
                        <h1 class="card-chart-num">
                            11557
                        </h1>
                        <div class="chart-card-content">
                            <div class="space-align-center">
                                <div class="space-item" style="margin-right:16px">
                                    周同比 18% <i class="iconfont icon-sort-up2" style="color:red;font-size: 14px;"></i>
                                </div>
                                <div class="space-item" style="margin-right:16px">
                                    月同比 5% <i class="iconfont icon-sort-up2" style="color:red;font-size: 14px;"></i>
                                </div>
                            </div>
                        </div>
                        <div class="divider-horizontal">
                        </div>
                        <div>
                            日新增 55
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="sales-data" style="">
            <div class="sales-title">
                <div class="head-left" style="width:50%;display: inline-block">
                    <div class="sales-item item-active" style="display: inline-block">销售额</div>
                    <div class="sales-item" style="display: inline-block">访问量</div>
                </div>
                <div class="tab-group head-right" style="float: right;display: flex;margin-top:15px;">
                    <div>
                        <span class="btn-wrap btn-wrap-active">今天</span><span class="btn-wrap">本周</span><span class="btn-wrap">本月</span><span class="btn-wrap">本年</span>
                    </div>
                     <div style="width:280px;margin-left:20px">
                        @component('component/rangedatapicker',['name'=>'created_at'])
                        @endcomponent
                    </div>
                </div>
            </div>
            <div class="sales-content row">
                <div class="sales-charts col-lg-9" style="margin-top:10px">
                    <div id="zchart" style="width:100%;height:360px;"></div>
                </div>
                <div class="col-lg-3" style="margin-top:20px;font-size: 14px">
                   <div style="color:rgba(0, 0, 0, 0.85);margin-left:5px;">商品销售量排名</div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">1</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">2</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">3</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">4</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">5</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">6</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">7</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-8" style="color:rgba(0, 0, 0, 0.85);"><span style="margin-right:10px;">8</span> 我是商品一</div>
                        <div class="col-lg-4" style="text-align: right;padding-right:30px;color: rgba(0, 0, 0, 0.45);">22434</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="real-time">
            <div class="real-data" style="">
                    <div class="" style="display: flex">
                        <div class="sales-charts " style="margin-top:10px;background:#ffffff;width:70%">
                            <div class="sales-title" style="padding:20px 15px 15px;font-size: 16px;color:rgba(0, 0, 0, 0.85);">
                                今日小时数据动态
                            </div>
                            <div id="rchart" style="width:100%;height:400px;"></div>
                        </div>
                        <div style="width:1%"></div>
                        <div  class="sales-charts" style="margin-top:10px;background:#ffffff;width:29%">
                            <div class="sales-title" style="padding:20px 15px 15px;font-size: 16px;color:rgba(0, 0, 0, 0.85);">
                                流量分析
                            </div>
                            <div id="lchart" style="width:100%;height:400px;margin-top:20px"></div>
                        </div>
                    </div>
                </div>
        </div>
    </div>
@endsection
@section("js-file")
    <script src="{{ URL::asset('js/backend/dashboard.js')}}"></script>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
    <script src="{{ URL::asset('assets/echart/echarts-theme.js')}}"></script>
@endsection